/**
 * MeetStart.java
 */
package com.prs.crm.domain.meeting;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Dept;
import com.prs.crm.domain.hr.Person;

/**
 * @author ZhuDongMei
 * @E-mail:1223984339@qq.com
 * @qq:1223984339
 * @version 创建时间：2011-3-16 上午11:12:28 简单说明
 */
@Entity
@Table(name="meet_info")
public class MeetStart extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	/**
	 * 会议编号
	 */
    private Integer id;
	/**
	 * 主办部门
	 */
	@ManyToOne
    private Dept dept;
    /**
	 * 会议议题
	 */
    private String name;
    /**
	 * 主持人
	 */
    @ManyToOne
    private Person person;
    /**
	 * 会议室
	 */
    @ManyToOne
    private MeetRoom meetRoom;
    /**
	 * 预订会议室
	 */
    @ManyToOne
    private MyBooking myBooking;
   
	/**
	 * 开始时间
	 */
    private Date startTime;
    /**
	 * 结束时间
	 */
    private Date endTime;
    /**
	 * 与会人员
	 */
    private String people;
    /**
	 * 与会人员编号
	 */
    private String peopleId;
    
	/**
	 * 会议性质
	 */
    @ManyToOne
    private MeetProperty meetProperty;
    
	/**
	 * 重要级别
	 */
	private String grade;
	/**
	 * 会议资源
	 */
	private String source;
	/**
	 * 会议资源编号
	 */
	private String sourceId;
	/**
	 * 附件
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@Cascade({org.hibernate.annotations.CascadeType.ALL,org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
	private Attachment attach;
	@Column(name="meetStart_file")
	private String meetStart_file;
	
	/**
	 * 纪要人员
	 */
	@ManyToOne
    private Person pers;
    /**
	 * 会议内容
	 */
    @Lob
	private String content;
    /**
	 * 会议接收人
	 */
    private String receivePerson;
    /**
	 * 会议接收人编号
	 */
	private String receivePersonId;
	/**
	 * 会议状态
	 */
	private String state;
	/**
	 * 会议纪要
	 */
	@OneToOne
	private MeetSummary meetSummary;
	
	public MyBooking getMyBooking() {
		return myBooking;
	}
	public void setMyBooking(MyBooking myBooking) {
		this.myBooking = myBooking;
	}
	public MeetSummary getMeetSummary() {
		return meetSummary;
	}
	public void setMeetSummary(MeetSummary meetSummary) {
		this.meetSummary = meetSummary;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public MeetRoom getMeetRoom() {
		return meetRoom;
	}
	public void setMeetRoom(MeetRoom meetRoom) {
		this.meetRoom = meetRoom;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Person getPers() {
		return pers;
	}
	public void setPers(Person pers) {
		this.pers = pers;
	}
	public MeetProperty getMeetProperty() {
		return meetProperty;
	}
	public void setMeetProperty(MeetProperty meetProperty) {
		this.meetProperty = meetProperty;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getSourceId() {
		return sourceId;
	}
	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}
	public String getReceivePerson() {
		return receivePerson;
	}
	public void setReceivePerson(String receivePerson) {
		this.receivePerson = receivePerson;
	}
	public String getReceivePersonId() {
		return receivePersonId;
	}
	public void setReceivePersonId(String receivePersonId) {
		this.receivePersonId = receivePersonId;
	}
	public String getPeople() {
		return people;
	}
	public void setPeople(String people) {
		this.people = people;
	}
	public String getPeopleId() {
		return peopleId;
	}
	public void setPeopleId(String peopleId) {
		this.peopleId = peopleId;
	}
	public Attachment getAttach() {
		return attach;
	}
	public void setAttach(Attachment attach) {
		this.attach = attach;
	}
	public String getMeetStart_file() {
		return meetStart_file;
	}
	public void setMeetStart_file(String meetStartFile) {
		meetStart_file = meetStartFile;
	}
	
}
